module.exports = {
  presets: [
    ["@babel/preset-react"],
    ["@babel/preset-env", {
      "useBuiltIns": "usage",
      "corejs": 3,
      // 'targets': {
      //   'browsers': ['ie >= 6', 'iOS 7'] // 支持ie8，直接使用iOS浏览器版本7
      // }
    }]
  ],

  plugins: [
    [
      "@babel/plugin-proposal-decorators",
      { legacy: true }
    ],
    [
      '@babel/plugin-proposal-class-properties', 
      { loose: true }
    ]
  ]
}